package com.dragon.modules.yuegou.model.member;

import com.dragon.modules.yuegou.entity.member.ProRightsEntity;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

/**
 * 商品权益关联表模型类
 * 
 * @author pbuilder generated
 * @date 2021-12-15 16:54:14
 * @company sgy
 * @version 2.0
 * @see Length 长度限制
 * @see NotNull 对象非空
 * @see NotEmpty 字符串、集合、表、数组非空
 */
public class ProRights extends ProRightsEntity {

	/**
	 * 构造一个空商品权益关联表模型对象
	 */
	public ProRights(){
		super();
	}
	
	/**
	 * 依据实体对象的信息构造一个商品权益关联表模型对象
	 * 
	 * @param entity 实体对象
	 */
	public ProRights(ProRightsEntity entity){
		super(entity);
	}

	/**
	 * 依据其它对象的信息构造一个商品权益关联表模型对象
	 * 
	 * @param other 其它对象
	 */
	public ProRights(ProRights other){
		super(other);
	}


	@Override
	public String getId() {
    	return id;
    }

    /**
	 * 设置ID
	 * 
	 * @param id ID
	 * @return 当前对象
	 */
    public ProRights id(String id) {
    	this.id = id;
    	return this;
    }

	@Override
	public String getRightsId() {
    	return rightsId;
    }

    /**
	 * 设置权益ID
	 * 
	 * @param rightsId 权益ID
	 * @return 当前对象
	 */
    public ProRights rightsId(String rightsId) {
    	this.rightsId = rightsId;
    	return this;
    }

	@Override
	public String getRightsName() {
    	return rightsName;
    }

    /**
	 * 设置权益名称
	 * 
	 * @param rightsName 权益名称
	 * @return 当前对象
	 */
    public ProRights rightsName(String rightsName) {
    	this.rightsName = rightsName;
    	return this;
    }

	@Override
	public String getGoodsId() {
    	return goodsId;
    }

    /**
	 * 设置商品ID
	 * 
	 * @param goodsId 商品ID
	 * @return 当前对象
	 */
    public ProRights goodsId(String goodsId) {
    	this.goodsId = goodsId;
    	return this;
    }

	@Override
	public String getGoodsName() {
    	return goodsName;
    }

    /**
	 * 设置商品名称
	 * 
	 * @param goodsName 商品名称
	 * @return 当前对象
	 */
    public ProRights goodsName(String goodsName) {
    	this.goodsName = goodsName;
    	return this;
    }

}
